package com.test;

import com.lh.spring.FrameUtil.FrameEnum;
import com.lh.spring.ioc.ApplicationClass;
import com.test.t1.Cat;
import com.test.t1.Student;
import com.test.t1.controller.MyController;

/**
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/1/14 15:04
 * @Created by LiuHua
 * @Path com.lh.spring
 */
public class start {
    public static void main(String[] args) {
        ApplicationClass applicationClass=new ApplicationClass(start.class,FrameEnum.First_Min);
        Cat bean = (Cat)applicationClass.getBean("cat");
        Student student = (Student)applicationClass.getBean("student");
        bean.setId(1);
        student.setName("张三");
        MyController beanType = (MyController)applicationClass.getBeanType(MyController.class);
        beanType.test();
        beanType.test2();
    }
}
